News filter

(starting from v2.29)

News filter allows you to avoid trading during news releases, or the opposite, to trade only during news releases.

You can specify the currencies and the impact of news to be used in trading and the time interval around news releases.

News calendar is downloaded from Forex factory.


How to set up the News filter?

To set up the News filter, you need to do several steps.


For backtesting and optimization

  1. Download news archive (News_2007_2022.zip) and latest news files (2023.01.01.csv, 2023.02.01.csv and so on) from the News archive page.

  2. Unpack archive and save all files to the common folder of all MetaTraders on your PC: C:\Users\your_name\AppData\Roaming\MetaQuotes\Terminal\Common\Files\

    To get there, you can use the “Open data folder” command in the terminal (File -> Open data folder).

    You should have the following directory and files structure after unpack:

  3. Set the correct DST mode and GMT offset in the Time settings.

    You should set the GMT and DST settings of your broker, not your local ones (how to do this?).

  4. Enable News filter in the EA settings and run the test.

    If everything is set correctly, you will see news lines on the visual testing chart:


For LIVE trading

  1. Add “https://nfs.faireconomy.media” to the Allowed URLs list in your MT (Tools -> Options or Ctrl+O):

  2. Enable News filter in the EA settings.

    If everything is fine, you will see news lines on the chart. You can toggle news visualization by the button in the top of the EA panel:



News parameters

News filter mode

Can be one of the following:

  • News disabled - news filter disabled, news don’t draw on the chart.

  • News time as a filter - news filter active, news can be drawn on the chart. Time interval around the news release applied as a filter.

For example, if you set Open on in this mode, EA will only trade in specified time intervals around news releases and will not trade out of these intervals.

  • No news time as a filter - news filter active, news can be drawn on the chart. Time interval free of news releases applied as a filter.

For example, if you set Open on in this mode, EA will not trade in specified time intervals around news releases and will trade out of these intervals.


Currencies

Currencies to filter the news. For example, “GBP,AUD,CAD”.

Set “auto” to automatically select currencies from the symbol expert is working on.


High-impact

Use news with high impact


Medium-impact

Use news with medium impact


Low-impact

Use news with low impact


Holidays

Use news with none impact (Holidays and non-economic news)


Include key-words

Key-words separated by comma to filter the news. Case-sensitive.

For example, “Nonfarm,Speech,Trade Balance”.

Leave empty not to filter the news by name.


Minutes before, Minutes after

Time interval around the news release when “news time” is active.


Visualization properties

Show on chart

true - draw news lines on the chart by default, false - don’t draw

Starting from v2.29, you can toggle news lines visibility on the chart using the button on the panel:

show_orders.gif


Previous events line style, Future events line style

Lines style for past and future news


Lines color

Lines color for different news impact